package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.RadeData;
import com.xmy.cultivate.mapper.RadeDataMapper;
import com.xmy.cultivate.respons.RadeDataRs;
import com.xmy.cultivate.service.IRadeDataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 各项率数据 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-29
 */
@Service
public class RadeDataServiceImpl extends ServiceImpl<RadeDataMapper, RadeData> implements IRadeDataService {

    @Autowired
    RadeDataMapper radeDataMapper;

    @Override
    public IPage<RadeDataRs> getRateByTeacherList(IPage<?> page, Integer yearPart, Integer quarterNum, String schoolId, String teacherName, String fiducialSetId, String subjectsId, String yearClassId, List<Integer> lessonNumList, Integer startLessonNum, Integer endLessonNum, Integer export, String examNum, Integer dataType) {
        return radeDataMapper.getRateByTeacherList(page, yearPart, quarterNum, schoolId, teacherName, fiducialSetId, subjectsId, yearClassId, lessonNumList, startLessonNum, endLessonNum, export, examNum, dataType);
    }

    @Override
    public IPage<RadeDataRs> getRateByYearClassTeacherList(IPage<?> page, Integer yearPart, Integer quarterNum, String schoolId, String teacherName, String fiducialSetId, String subjectsId, String yearClassId, List<Integer> lessonNumList, Integer startLessonNum, Integer endLessonNum, Integer export, String examNum, Integer dataType) {
        return radeDataMapper.getRateByYearClassTeacherList(page, yearPart, quarterNum, schoolId, teacherName, fiducialSetId, subjectsId, yearClassId, lessonNumList, startLessonNum, endLessonNum, export, examNum, dataType);
    }

    @Override
    public IPage<RadeDataRs> getRateByChargeTeacherList(IPage<?> page, Integer yearPart, Integer quarterNum, String schoolId, String teacherName, String fiducialSetId, String subjectsId, String yearClassId, List<Integer> lessonNumList, Integer startLessonNum, Integer endLessonNum, Integer export, String departmentId, String examNum, Integer dataType) {
        return radeDataMapper.getRateByChargeTeacherList(page, yearPart, quarterNum, schoolId, teacherName, fiducialSetId, subjectsId, yearClassId, lessonNumList, startLessonNum, endLessonNum, export, departmentId, examNum, dataType);
    }

    @Override
    public IPage<RadeDataRs> getRateByYearClassTeacherOwnList(IPage<?> page, Integer yearPart, Integer quarterNum, String schoolId, String teacherName, String fiducialSetId, String subjectsId, String yearClassId, List<Integer> lessonNumList, Integer startLessonNum, Integer endLessonNum, Integer export, String examNum, Integer dataType) {
        return radeDataMapper.getRateByYearClassTeacherOwnList(page, yearPart, quarterNum, schoolId, teacherName, fiducialSetId, subjectsId, yearClassId, lessonNumList, startLessonNum, endLessonNum, export, examNum, dataType);
    }

    @Override
    public IPage<RadeDataRs> getRateByChargeTeacherOwnList(IPage<?> page, Integer yearPart, Integer quarterNum, String schoolId, String teacherName, String fiducialSetId, String subjectsId, String yearClassId, List<Integer> lessonNumList, Integer startLessonNum, Integer endLessonNum, Integer export, String departmentId, String examNum, Integer dataType) {
        return radeDataMapper.getRateByChargeTeacherOwnList(page, yearPart, quarterNum, schoolId, teacherName, fiducialSetId, subjectsId, yearClassId, lessonNumList, startLessonNum, endLessonNum, export, departmentId, examNum, dataType);
    }
}
